<?php

class ui_form extends ui
{
	function __construct($action,$method='get')
	{
		global $ti;
		$this->init(__FILE__,'form',array('action'=>$action,'method'=>$method));
		$ti->config['var.lastform'] = $this;
		$this->elements = array();
		$this->allow_edit = true;
	}
	
	function toggle_edit($new_state)
	{
		$this->allow_edit = $new_state;
	}
}
?>